// 使用自己封装的api
import request from '@/api/http'

function getArticleList(params) {
  return request({
    url: '/admin/xy/news/list',
    method: 'get',
    params
  })
}
function saveArticle(params) {
  return request({
    url: '/admin/xy/news/save',
    method: 'post',
    params
  })
}

function updateArticle(params) {
  return request({
    url: '/admin/xy/news/update',
    method: 'post',
    params
  })
}
function delArticle(params) {
  return request({
    url: '/admin/xy/news/del',
    method: 'get',
    params
  })
}
function detail(params) {
  return request({
    url: '/admin/xy/news/detail',
    method: 'get',
    params
  })
}

export default {
  getArticleList,
  saveArticle,
  updateArticle,
  delArticle,
  detail

}
